package com.zs.toolbox.web2j.system.core.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;

/**
 * @author shuai.zhang  on 2018/10/11
 * @description
 */
@Data
@ApiModel("文章内容对象")
public class WtPostContentRequest {

    @ApiModelProperty(value = "文章ID,更新时需添加")
    private Long postId;

    @ApiModelProperty(value = "推送内容类型:system,article,answer",required = true)
    private String postType;

    @ApiModelProperty(value = "推送内容",required = true)
    @Size(min = 1, max = 20000,message = "文章内容应为1 - 20000字符")
    private String postContent;

    @ApiModelProperty(value = "推送标题",required = true,example = "我是标题")
    @Size(min = 1, max = 100,message = "文章标题应为1-100个字符")
    private String postTitle;

    @ApiModelProperty(value = "推送摘要",example = "我是摘要")
    @Size(min = 1, max = 100,message = "文章摘要应为300个字符")
    private String postExcerpt;

    @ApiModelProperty(value = "推送状态 publish/trash/inherit ，默认为发布",example = "publish")
    @Size(min = 1, max = 100,message = "文章摘要应为300个字符")
    private String postStatus;

    @ApiModelProperty(value = "评论开关 open/closed,默认为打开",example = "是否可评论")
    private String commentStatus = "open";

    @ApiModelProperty(value = "推送上级ID")
    private Long postParent;

    private LocalDateTime createDate;
    private LocalDateTime updateTime;
}
